package com.hspedu.date_;

import java.util.Scanner;

/**
 * @author yulian174
 * @version 1.0
 */
public class Mybatis {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        StringBuffer stringBuffer = new StringBuffer(s);
        for (int i = s.indexOf(".") - 3; i > 0; i-=3) {
            stringBuffer = stringBuffer.insert(i, ",");
        }
        for (int i = 0; i < stringBuffer.length(); i++) {
            System.out.println(stringBuffer);
        }
    }
}
